<?php

include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'ModuleControllers.php';

class AdminModules extends Modules {
    const table_customer = 'hotels_customer';

    //not change
    function __construct($aryConfig) {
        $this->setConfig($aryConfig);
    }

    public function getCustomerRegister(&$aryCustomer) {
        $sql = "SELECT customer_id,
                        customer_full_name,
                        customer_gender,
                        customer_nationality,
                        customer_address,
                        customer_phone_number,
                        customer_email,
                        customer_date_check_in,
                        customer_date_check_out,
                        customer_number_of_room,
                        customer_room_type,
                        customer_bed_type,
                        customer_number_of_adults,
                        customer_number_of_children,
                        customer_note
                FROM ".self::table_customer."
                WHERE customer_del_flag = 0
                ORDER BY customer_create_date DESC";
        $intOk = $this->getArray($sql, $aryCustomer);
        return $intOk;
    }

}

?>
